<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<title>登录</title>  
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<link rel="stylesheet" type="text/css" href="/wxSeller/css/base.css?d=20150704" />
<link rel="stylesheet" type="text/css" href="/wxSeller/css/index.css?d=20150704" />
    <script type="text/javascript" src="/wxSeller/js/touchScroll.js"></script>
    <script type="text/javascript" src="/wxSeller/js/touchslider.js"></script> 
    <script src="/wxSeller/js/jquery.js" ></script>
<script>
    $(".userpsw input").focus(function(){
        $(this).attr("type","password");
    });
    $(".userpsw input").blur(function(){
        if($(".userpsw input").val()==""){
            $(this).attr("type","text");
        }else{
            $(this).attr("type","password");
        }
    });
	function login(){
		var name=$(".username input").val();
		var pass=$(".userpsw input").val();
		$.ajax({
            url: "/wx/seller/doLogin",
            data:{"username":name,"password":pass},
            type: "POST",
			dataType:"text",
            success:function(data){
            	if(data !="1"){
    				 	alert(data);
                    }else(
                        window.location.href="/wx/seller/ticketOrderList?status=all"
    				)
            },
            error:function(data){
           		alert("异常")
            }
		})
	}
</script>
</head>
<body>
<div class="login">
    <div id="header">
        <a href="javascript:history.go(-1);">返回</a>
    </div>
    <div class="index">
        <div class="logo"><img src="/wxSeller/images/logo.png"></div>
        <div class="usermsg">
            <div class="username"><input type="text" placeholder="账号"></div>
            <div class="userpsw"><input type="text" placeholder="密码"></div>
        </div>
        <div id="submit"><a href="#" onclick="login()">登录</a></div>
    </div>
</div>

</body>
</html>